package com.googlecode.astoolkit.utils {
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	
	public class SpriteUtils{
		
		// Get the root from any sprite added to stage
		public static function getRoot (clue:Sprite):Sprite{
			while(clue.parent as Sprite){
				clue=Sprite(clue.parent);
			}
			return clue;
		}
	
	}
	
}